package com.luoye.lj.wstool.web.entity;

/*
 * Created with IntelliJ IDEA.
 * User: Dave Liu
 * Date: 2016/4/26
 * Time: 13:00
 * To change this template use File | Settings | File Templates.
 */
public class WebtField {
    private String fieldName;//字段名
    private String fieldType;//字段类型
    private String columnName;//列名
    private String description;//注释描述
    private boolean primary;//是否主键
    private boolean increment;//自增

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isPrimary() {
        return primary;
    }

    public void setPrimary(boolean primary) {
        this.primary = primary;
    }

    public boolean isIncrement() {
        return increment;
    }

    public void setIncrement(boolean increment) {
        this.increment = increment;
    }

    public WebtField() {
    }

    public WebtField(String fieldName, String fieldType, String columnName, String description) {
        this.fieldName = fieldName;
        this.fieldType = fieldType;
        this.columnName = columnName;
        this.description = description;
    }

    public WebtField(String fieldName, String fieldType, String columnName, String description, boolean primary, boolean increment) {
        this.fieldName = fieldName;
        this.fieldType = fieldType;
        this.columnName = columnName;
        this.description = description;
        this.primary = primary;
        this.increment = increment;
    }

    @Override
    public String toString() {
        return "WebtField{" +
                "fieldName='" + fieldName + '\'' +
                ", fieldType='" + fieldType + '\'' +
                ", columnName='" + columnName + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
